import 'package:get/get.dart';
import 'package:star_author/utils/http/http_util.dart';

class FeaturedServicesController extends GetxController {
  List services = [];

  FeaturedServicesController() {
    getServices();
  }

  getServices() {
    HttpUtil.commonRequest(
      Get.context!,
      '/api/v1/special_services',
      isLoading: false,
      isErrorToast: false,
    ).then((value) {
      services = value.data['data'] ?? [];
      update();
    });
  }
}
